package com.ruoyi;

import com.smartframework.web.BaseRunner;
import com.smartframework.web.core.runner.RunnerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.net.URLClassLoader;

/**
 * 启动MntDemo程序
 *
 * @author LIUJUN
 */

@SpringBootApplication
public class MntDemoApplication {

    public static void main(String[] args) {
        BaseRunner.init(MntDemoApplication.class, args);
        //从当前程序运行的相对目录下lib文件夹中加载jar包至系统内
        RunnerFactory.loadDir((URLClassLoader) MntDemoApplication.class.getClassLoader(),
                String.format("%s/lib", System.getProperty("user.dir")).replace("\\", "/"));
        //启动主程序
        ApplicationStarter.run(MntDemoApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  RuoYi-Vue-Mnt 启动成功   ლ(´ڡ`ლ)ﾞ");
    }

}
